<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>22K医疗集团 欢迎您</title>

    <!-- css -->
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="plugins/cubeportfolio/css/cubeportfolio.min.css">
    <link href="css/nivo-lightbox.css" rel="stylesheet"/>
    <link href="css/nivo-lightbox-theme/default/default.css" rel="stylesheet" type="text/css"/>
    <link href="css/owl.carousel.css" rel="stylesheet" media="screen"/>
    <link href="css/owl.theme.css" rel="stylesheet" media="screen"/>
    <link href="css/animate.css" rel="stylesheet"/>
    <link href="css/style.css" rel="stylesheet">

    <!-- boxed bg -->
    <link id="bodybg" href="bodybg/bg1.css" rel="stylesheet" type="text/css"/>
    <!-- template skin -->
    <link id="t-colors" href="color/default.css" rel="stylesheet">
    <script src="/js/pageWriteHtml.js" charset="UTF-8"></script>
    <style>
        #testimonial > div > div {
            margin: 20px auto;
        }
    </style>
</head>

<body id="page-top" data-spy="scroll" data-target=".navbar-custom">


<div id="wrapper">

    <!-- 写入头文件 -->
    <script>writeHtmlAsHead();</script>

    <section id="intro" class="intro">
        <div class="intro-content">
            <div class="container">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="wow fadeInDown" data-wow-offset="0" data-wow-delay="0.1s">
                            <h2 class="h-ultra">22K医疗集团</h2>
                        </div>
                        <div class="wow fadeInUp" data-wow-offset="0" data-wow-delay="0.1s">
                            <h4 class="h-light">为您提供最优质的医疗服务</h4>
                        </div>
                        <div class="well well-trans">
                            <div class="wow fadeInRight" data-wow-delay="0.1s">

                                <ul class="lead-list">
                                    <li><span class="fa fa-check fa-2x icon-success"></span> <span class="list"><strong>线上预约拒绝排队</strong><br/>时间就是生命,线上预约线下诊断</span>
                                    </li>
                                    <li><span class="fa fa-check fa-2x icon-success"></span> <span class="list"><strong>全球顶尖医疗团队</strong><br/>我们拥有世界一流的医生团队</span>
                                    </li>
                                    <li><span class="fa fa-check fa-2x icon-success"></span> <span class="list"><strong>价格公道</strong><br/>无论贫穷富裕，都享有眼健康的权利。</span>
                                    </li>
                                </ul>
                                <p class="text-right wow bounceIn" data-wow-delay="0.4s">
                                    <a href="/page/book/onlineBooking.html" class="btn btn-skin btn-lg"> 立即预约 <i
                                            class="fa fa-angle-right"></i></a>
                                </p>
                            </div>
                        </div>

                    </div>
                    <div class="col-lg-6">
                        <div class="wow fadeInUp" data-wow-duration="2s" data-wow-delay="0.2s">
                            <img src="/img/dummy/img-1.png" class="img-responsive" alt=""/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- /Section: intro -->

    <!-- Section: boxes -->
    <section id="boxes" class="home-section paddingtop-80">

        <div class="container">
            <div class="row">
                <div class="col-sm-3 col-md-3">
                    <div class="wow fadeInUp" data-wow-delay="0.2s">
                        <div class="box text-center">

                            <i class="fa fa-check fa-3x circled bg-skin"></i>
                            <h4 class="h-bold">网上预约</h4>
                            <p>
                                网上预约的介绍
                            </p>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3 col-md-3">
                    <div class="wow fadeInUp" data-wow-delay="0.2s">
                        <div class="box text-center">

                            <i class="fa fa-list-alt fa-3x circled bg-skin"></i>
                            <h4 class="h-bold">药物查询</h4>
                            <p>
                                药品价格公开透明,药物种类齐全,包含中西各大药品
                            </p>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3 col-md-3">
                    <div class="wow fadeInUp" data-wow-delay="0.2s">
                        <div class="box text-center">
                            <i class="fa fa-user-md fa-3x circled bg-skin"></i>
                            <h4 class="h-bold">查看医师</h4>
                            <p>
                                在线查看本院所有医生,心里有数不迷路
                            </p>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3 col-md-3">
                    <div class="wow fadeInUp" data-wow-delay="0.2s">
                        <div class="box text-center">

                            <i class="fa fa-hospital-o fa-3x circled bg-skin"></i>
                            <h4 class="h-bold">线下问诊</h4>
                            <p>
                                线上预约,线下问诊,拒绝线上描述不清,顶级医生一对一诊断
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </section>
    <!-- /Section: boxes -->
    <!--
        <section id="callaction" class="home-section paddingtop-40">
          <div class="container">
            <div class="row">
              <div class="col-md-12">
                <div class="callaction bg-gray">
                  <div class="row">
                    <div class="col-md-8">
                      <div class="wow fadeInUp" data-wow-delay="0.1s">
                        <div class="cta-text">
                          <h3>In an emergency? Need help now?</h3>
                          <p>Lorem ipsum dolor sit amet consectetur adipiscing elit uisque interdum ante eget faucibus. </p>
                        </div>
                      </div>
                    </div>
                    <div class="col-md-4">
                      <div class="wow lightSpeedIn" data-wow-delay="0.1s">
                        <div class="cta-btn">
                          <a href="#" class="btn btn-skin btn-lg">Book an appoinment</a>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </section> -->


    <!-- Section: services -->
    <section id="service" class="home-section nopadding paddingtop-60">

        <div class="container">

            <div class="row">
                <div class="col-sm-6 col-md-6">
                    <div class="wow fadeInUp" data-wow-delay="0.2s">
                        <img src="img/dummy/img-1.jpg" class="img-responsive" alt=""/>
                    </div>
                </div>
                <div class="col-sm-3 col-md-3">

                    <div class="wow fadeInRight" data-wow-delay="0.1s">
                        <div class="service-box">
                            <div class="service-icon">
                                <span class="fa fa-stethoscope fa-3x"></span>
                            </div>
                            <div class="service-desc">
                                <h5 class="h-light">体检</h5>
                                <p>法雷特拉马莱苏阿达的维西布鲁姆丁西顿特内姆。</p>
                            </div>
                        </div>
                    </div>

                    <div class="wow fadeInRight" data-wow-delay="0.2s">
                        <div class="service-box">
                            <div class="service-icon">
                                <span class="fa fa-wheelchair fa-3x"></span>
                            </div>
                            <div class="service-desc">
                                <h5 class="h-light">护理服务</h5>
                                <p>美女护士小姐姐,护士病房一对一,更可享受专属护理</p>
                            </div>
                        </div>
                    </div>
                    <div class="wow fadeInRight" data-wow-delay="0.3s">
                        <div class="service-box">
                            <div class="service-icon">
                                <span class="fa fa-plus-square fa-3x"></span>
                            </div>
                            <div class="service-desc">
                                <h5 class="h-light">药房</h5>
                                <p>超级全的药品种类,最公道的价格,打造最好的药品服务.</p>
                            </div>
                        </div>
                    </div>


                </div>
                <div class="col-sm-3 col-md-3">

                    <div class="wow fadeInRight" data-wow-delay="0.1s">
                        <div class="service-box">
                            <div class="service-icon">
                                <span class="fa fa-h-square fa-3x"></span>
                            </div>
                            <div class="service-desc">
                                <h5 class="h-light">金牌护理</h5>
                                <p>Vestibulum tincidunt enim in pharetra malesuada.</p>
                            </div>
                        </div>
                    </div>

                    <div class="wow fadeInRight" data-wow-delay="0.2s">
                        <div class="service-box">
                            <div class="service-icon">
                                <span class="fa fa-filter fa-3x"></span>
                            </div>
                            <div class="service-desc">
                                <h5 class="h-light">神经学</h5>
                                <p>Vestibulum tincidunt enim in pharetra malesuada.</p>
                            </div>
                        </div>
                    </div>
                    <div class="wow fadeInRight" data-wow-delay="0.3s">
                        <div class="service-box">
                            <div class="service-icon">
                                <span class="fa fa-user-md fa-3x"></span>
                            </div>
                            <div class="service-desc">
                                <h5 class="h-light">睡眠中心</h5>
                                <p>Vestibulum tincidunt enim in pharetra malesuada.</p>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
        </div>
    </section>
    <!-- /Section: services -->


    <!-- Section: team -->
    <section id="doctor" class="home-section bg-gray paddingbot-60">
        <div class="container marginbot-50">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="wow fadeInDown" data-wow-delay="0.1s">
                        <div class="section-heading text-center">
                            <h2 class="h-bold">医生</h2>
                            <p>22K战地医疗,拥有世界上最顶尖的医生,蹭获得或世界多项奖项</p>
                        </div>
                    </div>
                    <div class="divider-short"></div>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                <div class="col-lg-12">

                    <div id="filters-container" class="cbp-l-filters-alignLeft">
                       <!-- <div data-filter="*" class="cbp-filter-item-active cbp-filter-item">All (
                            <div class="cbp-filter-counter"></div>
                            )
                        </div>
                        <div data-filter=".心理学" class="cbp-filter-item">心理学 (
                            <div class="cbp-filter-counter"></div>
                            )
                        </div>
                        <div data-filter=".psychiatrist" class="cbp-filter-item">Psychiatrist (
                            <div class="cbp-filter-counter"></div>
                            )
                        </div>
                        <div data-filter=".neurologist" class="cbp-filter-item">Neurologist (
                            <div class="cbp-filter-counter"></div>
                            )
                        </div>-->
                    </div>

                    <div id="grid-container" class="cbp-l-grid-team">
                        <ul id="grid-container-ul">
                            <li class="cbp-item psychiatrist">
                                <a href="doctors/member1.html" class="cbp-caption cbp-singlePage">
                                    <div class="cbp-caption-defaultWrap">
                                        <img src="img/team/1.jpg" alt="" width="100%">
                                    </div>
                                    <div class="cbp-caption-activeWrap">
                                        <div class="cbp-l-caption-alignCenter">
                                            <div class="cbp-l-caption-body">
                                                <div class="cbp-l-caption-text">查看详情</div>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                                <a href="doctors/member1.html" class="cbp-singlePage cbp-l-grid-team-name">Alice
                                    Grue</a>
                                <div class="cbp-l-grid-team-position">心理学</div>
                            </li>
                            <li class="cbp-item 心理学">
                                <a href="doctors/member2.html" class="cbp-caption cbp-singlePage">
                                    <div class="cbp-caption-defaultWrap">
                                        <img src="img/team/2.jpg" alt="" width="100%">
                                    </div>
                                    <div class="cbp-caption-activeWrap">
                                        <div class="cbp-l-caption-alignCenter">
                                            <div class="cbp-l-caption-body">
                                                <div class="cbp-l-caption-text">查看详情</div>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                                <a href="doctors/member2.html" class="cbp-singlePage cbp-l-grid-team-name">Joseph
                                    Murphy</a>
                                <div class="cbp-l-grid-team-position">心脏病学</div>
                            </li>
                            <li class="cbp-item 心理学">
                                <a href="doctors/member3.html" class="cbp-caption cbp-singlePage">
                                    <div class="cbp-caption-defaultWrap">
                                        <img src="img/team/3.jpg" alt="" width="100%">
                                    </div>
                                    <div class="cbp-caption-activeWrap">
                                        <div class="cbp-l-caption-alignCenter">
                                            <div class="cbp-l-caption-body">
                                                <div class="cbp-l-caption-text">VIEW PROFILE</div>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                                <a href="doctors/member3.html" class="cbp-singlePage cbp-l-grid-team-name">Alison
                                    Davis</a>
                                <div class="cbp-l-grid-team-position">心理学</div>
                            </li>
                            <li class="cbp-item neurologist">
                                <a href="doctors/member4.html" class="cbp-caption cbp-singlePage">
                                    <div class="cbp-caption-defaultWrap">
                                        <img src="img/team/4.jpg" alt="" width="100%">
                                    </div>
                                    <div class="cbp-caption-activeWrap">
                                        <div class="cbp-l-caption-alignCenter">
                                            <div class="cbp-l-caption-body">
                                                <div class="cbp-l-caption-text">VIEW PROFILE</div>
                                            </div>
                                        </div>
                                    </div>
                                </a>
                                <a href="doctors/member4.html" class="cbp-singlePage cbp-l-grid-team-name">Adam
                                    Taylor</a>
                                <div class="cbp-l-grid-team-position">神经病学</div>
                            </li>

                        </ul>
                    </div>
                </div>
            </div>
        </div>

    </section>
    <!-- /Section: team -->


    <!-- Section: works -->
    <section id="facilities" class="home-section paddingbot-60">
        <div class="container marginbot-50">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2">
                    <div class="wow fadeInDown" data-wow-delay="0.1s">
                        <div class="section-heading text-center">
                            <h2 class="h-bold">我们的设备</h2>
                            <p>我们拥有世界顶尖的医疗设备</p>
                        </div>
                    </div>
                    <div class="divider-short"></div>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                <div class="col-sm-12 col-md-12 col-lg-12">
                    <div class="wow bounceInUp" data-wow-delay="0.2s">
                        <div id="owl-works" class="owl-carousel">
                            <div class="item"><a href="img/photo/1.jpg" title="This is an image title"
                                                 data-lightbox-gallery="gallery1"
                                                 data-lightbox-hidpi="img/works/1@2x.jpg"><img src="img/photo/1.jpg"
                                                                                               class="img-responsive"
                                                                                               alt="img"></a></div>
                            <div class="item"><a href="img/photo/2.jpg" title="This is an image title"
                                                 data-lightbox-gallery="gallery1"
                                                 data-lightbox-hidpi="img/works/2@2x.jpg"><img src="img/photo/2.jpg"
                                                                                               class="img-responsive "
                                                                                               alt="img"></a></div>
                            <div class="item"><a href="img/photo/3.jpg" title="This is an image title"
                                                 data-lightbox-gallery="gallery1"
                                                 data-lightbox-hidpi="img/works/3@2x.jpg"><img src="img/photo/3.jpg"
                                                                                               class="img-responsive "
                                                                                               alt="img"></a></div>
                            <div class="item"><a href="img/photo/4.jpg" title="This is an image title"
                                                 data-lightbox-gallery="gallery1"
                                                 data-lightbox-hidpi="img/works/4@2x.jpg"><img src="img/photo/4.jpg"
                                                                                               class="img-responsive "
                                                                                               alt="img"></a></div>
                            <div class="item"><a href="img/photo/5.jpg" title="This is an image title"
                                                 data-lightbox-gallery="gallery1"
                                                 data-lightbox-hidpi="img/works/5@2x.jpg"><img src="img/photo/5.jpg"
                                                                                               class="img-responsive "
                                                                                               alt="img"></a></div>
                            <div class="item"><a href="img/photo/6.jpg" title="This is an image title"
                                                 data-lightbox-gallery="gallery1"
                                                 data-lightbox-hidpi="img/works/6@2x.jpg"><img src="img/photo/6.jpg"
                                                                                               class="img-responsive "
                                                                                               alt="img"></a></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /Section: works -->


    <!-- Section: testimonial -->
    <section id="testimonial" class="home-section paddingbot-60 parallax" data-stellar-background-ratio="0.5">

        <div class="carousel-reviews broun-block">
            <div class="container">
                <div>
                    <div class="col-md-4 col-sm-6">
                        <div class="block-text rel zmin">
                            <p style="height: 12ex"> 那是一个春天,...</p>
                            <ins class="ab zmin sprite sprite-i-triangle block"></ins>
                        </div>
                        <div class="person-text rel text-light">
                            <a href="#">董铭珠</a>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="block-text rel zmin">
                            <p style="height: 12ex"> 那是一个春天,...</p>
                            <ins class="ab zmin sprite sprite-i-triangle block"></ins>
                        </div>
                        <div class="person-text rel text-light">
                            <a href="#">董铭珠</a>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="block-text rel zmin">
                            <p style="height: 12ex"> 那是一个春天,...</p>
                            <ins class="ab zmin sprite sprite-i-triangle block"></ins>
                        </div>
                        <div class="person-text rel text-light">
                            <a href="#">董铭珠</a>
                        </div>
                    </div>
                </div>
                <div>
                    <div class="col-md-4 col-sm-6">
                        <div class="block-text rel zmin">
                            <p style="height: 12ex"> 那是一个春天,...</p>
                            <ins class="ab zmin sprite sprite-i-triangle block"></ins>
                        </div>
                        <div class="person-text rel text-light">
                            <a href="#">董铭珠</a>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="block-text rel zmin">
                            <p style="height: 12ex"> 那是一个春天,...</p>
                            <ins class="ab zmin sprite sprite-i-triangle block"></ins>
                        </div>
                        <div class="person-text rel text-light">
                            <a href="#">董铭珠</a>
                        </div>
                    </div>
                    <div class="col-md-4 col-sm-6">
                        <div class="block-text rel zmin">
                            <p style="height: 12ex"> 那是一个春天,...</p>
                            <ins class="ab zmin sprite sprite-i-triangle block"></ins>
                        </div>
                        <div class="person-text rel text-light">
                            <a href="#">董铭珠</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /Section: testimonial -->


    <script>writeHtmlAsFooter();</script>

</div>
<a href="#" class="scrollup"><i class="fa fa-angle-up active"></i></a>

<!-- Core JavaScript Files -->
<script src="js/jquery.min.js"></script>

<script>

    $.ajaxSettings.async = false; //开启同步请求

    /*
请求所有科室
*/
    $.post("http://localhost:8080/api/department/getAllDepartment", (data) => {
        allDepartment = data;   //将所有的可是存到变量里

        console.log(allDepartment)

        let $filters = $("#filters-container");
        $filters.html(""); //清空

        //当科室有数据的时候添加显示全部的选线
        if (data.length > 0) {
            let $element = $('<div data-filter="*" class="cbp-filter-item-active cbp-filter-item">全部 (\n' +
                '                            <div class="cbp-filter-counter"></div>\n' +
                '                            )\n' +
                '                        </div>')

            $filters.append($element);
        }


        for (let i = 0; i < data.length; i++) {
            let obj = data[i];
            let elem = $('<div data-filter=".'+ obj.departmentName +'" class="cbp-filter-item">'+  obj.departmentName +' (\n' +
                '                            <div class="cbp-filter-counter"></div>\n' +
                '                            )\n' +
                '                        </div>');
            $filters.append(elem);
        }

    });





    $.post("http://localhost:8080/doctor/pageData",{
        page:1,
        limit:10000,
        indexPage:true  //用于后端拦截器判断打开日志
    },(data,status) => {
        console.log(data)
        if (status === "success" && data.code === 0) {
            let $grid = $("#grid-container-ul");
            $grid.html("");

            for (let i = 0; i < data.data.length; i++) {
                let obj = data.data[i];

                let $element =  $('<li class="cbp-item '+ obj.department_name +'">\n' +
                    '                                <a href="doctors/member1.html" class="cbp-caption cbp-singlePage">\n' +
                    '                                    <div class="cbp-caption-defaultWrap">\n' +
                    '                                        <img src="'+obj.img+'" alt="" width="100%">\n' +
                    '                                    </div>\n' +
                    '                                    <div class="cbp-caption-activeWrap">\n' +
                    '                                        <div class="cbp-l-caption-alignCenter">\n' +
                    '                                            <div class="cbp-l-caption-body">\n' +
                    '                                                <div class="cbp-l-caption-text">查看详情</div>\n' +
                    '                                            </div>\n' +
                    '                                        </div>\n' +
                    '                                    </div>\n' +
                    '                                </a>\n' +
                    '                                <a href="doctors/member1.html" class="cbp-singlePage cbp-l-grid-team-name">'+obj.name+'</a>\n' +
                    '                                <div class="cbp-l-grid-team-position">'+obj.department_name+'</div>\n' +
                    '                            </li>')

                $grid.append($element);
            }

        } else {
            console.log("获取所有医生失败");
        }
    })


    $.ajaxSettings.async = true;//关闭同步请求

</script>




<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/jquery.scrollTo.js"></script>
<script src="js/jquery.appear.js"></script>
<script src="js/stellar.js"></script>
<script src="plugins/cubeportfolio/js/jquery.cubeportfolio.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/nivo-lightbox.min.js"></script>
<script src="js/custom.js"></script>



</body>

</html>
